package com.example.auth.annotation;


import com.example.auth.validator.IdCardValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = IdCardValidator.class)
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface IDCard {
    String message() default "Invalid idcard";
    Class<?>[] groups() default { };
    Class<? extends Payload>[] payload() default { };
}
